﻿@{
    if (IsPost) {
        string companyname = Request["companyname"];
        string contactname = Request["contactname"];
        int employeecount = Request["employees"].AsInt();
 
        <text>
          You entered: <br />
          Company Name: @companyname <br />
          Contact Name: @contactname <br />
          Employee Count: @employeecount <br />
        </text>
    }
}
<fieldset>
    <legend>Add Customer</legend>
    <div>
        <label for="CompanyName">Company Name:</label>
        <input type="text" name="CompanyName" value="" />
    </div>
    <div>
        <label for="ContactName">Contact Name:</label>
        <input type="text" name="ContactName" value="" />
    </div>
    <div>
        <label for="Employees">Employee Count:</label>
        <input type="text" name="Employees" value="" />
    </div>
    <div>
        <label>&nbsp;</label>
        <input type="submit" value="Submit" class="submit" />
    </div>
</fieldset>
